Hi, I am trying to create links from RQM(6.0.3) to DOORS 9.6.1.3. So i do a GET on the RQM URL and then just add "<oslc_qm:validatesRequirement rdf:resource="DOORS Object URL" below the ones already present and use if match with the e-tag and give content type as "application/rdf+xml" and finally do a PUT on it. But, i still get the error as below. What am i doing wrong?
<oslc:Error ns12:type="oslc:Error" xmlns:ns12="http://www.w3.org/2001/XMLSchema-instance"> Gsquare - Wed Sep 06 02:53:52 EDT 2017 |
Re: OSLC ERROR MESSAGE:Please explain Just a thought. You want to make sure the "DOORS Object URL" is a dwa URL for the object (obtained by using the DXL function getResourceURL). Other than that, looks like what you are doing lines up with what I do to successfully create links using DXL. |
Re: OSLC ERROR MESSAGE:Please explain Rolan - Tue Sep 12 14:54:57 EDT 2017 Just a thought. You want to make sure the "DOORS Object URL" is a dwa URL for the object (obtained by using the DXL function getResourceURL). Other than that, looks like what you are doing lines up with what I do to successfully create links using DXL. Hello @Rolan 979f4678-2c11-4d21-b634-b7f3e1a9b548,
Thank you for the reply. I am using DOORS classic 9.6.1.3 not DWA. But yes, i am using the URL obtained from the getResourceURL function.
After i do a GET, i have a huge response containing the links which i created manually. Like: <oslc_qm:validatesRequirement rdf:resource="doors://abc.com:36691/?version=2&prodID=0&urn=urn:telelogic::1-0000000000000000-O-23-00043fc2"/>
To this i just add the line below the actual line and in the "Content To Send" part i choose "application/rdf+xml" and perform a PUT <oslc_qm:validatesRequirement rdf:resource="doors://abc.com:36691/?version=2&prodID=0&urn=urn:telelogic::1-0000000000000000-O-23-00043fc2"/> <oslc_qm:validatesRequirement rdf:resource="doors://abc.com:36691/?version=2&prodID=0&urn=urn:telelogic::1-0000000000000000-O-55-00043fc2"/>
Do we also need to change any other part before doing a PUT? What am i missing here, any idea?
Thanks, Gaurav |
Re: OSLC ERROR MESSAGE:Please explain Gsquare - Wed Sep 13 02:19:28 EDT 2017 Hello @Rolan 979f4678-2c11-4d21-b634-b7f3e1a9b548,
Thank you for the reply. I am using DOORS classic 9.6.1.3 not DWA. But yes, i am using the URL obtained from the getResourceURL function.
After i do a GET, i have a huge response containing the links which i created manually. Like: <oslc_qm:validatesRequirement rdf:resource="doors://abc.com:36691/?version=2&prodID=0&urn=urn:telelogic::1-0000000000000000-O-23-00043fc2"/>
To this i just add the line below the actual line and in the "Content To Send" part i choose "application/rdf+xml" and perform a PUT <oslc_qm:validatesRequirement rdf:resource="doors://abc.com:36691/?version=2&prodID=0&urn=urn:telelogic::1-0000000000000000-O-23-00043fc2"/> <oslc_qm:validatesRequirement rdf:resource="doors://abc.com:36691/?version=2&prodID=0&urn=urn:telelogic::1-0000000000000000-O-55-00043fc2"/>
Do we also need to change any other part before doing a PUT? What am i missing here, any idea?
Thanks, Gaurav I've never seen a validatesRequirement rdf:resource that points to a doors://... url. In our installation DWA is also installed in addition to DOORS classic, and the urls in a validatesRequirement are in this form 'https://doors.app.xxx.com:8470/dwa/rm/urn:rational::1-0000000000000000-O-19517-00015fdb', which is also what is returned for an object by the getResourceURL function in DOORS.
May want to try just changing a link by changing the object number in the existing link (23 to 55) to see if that works. If it does, then maybe there are some extraneous characters being added when you insert the additional link.
Everything else you are doing sounds right. |
Re: OSLC ERROR MESSAGE:Please explain Rolan - Wed Sep 13 07:43:23 EDT 2017 I've never seen a validatesRequirement rdf:resource that points to a doors://... url. In our installation DWA is also installed in addition to DOORS classic, and the urls in a validatesRequirement are in this form 'https://doors.app.xxx.com:8470/dwa/rm/urn:rational::1-0000000000000000-O-19517-00015fdb', which is also what is returned for an object by the getResourceURL function in DOORS.
May want to try just changing a link by changing the object number in the existing link (23 to 55) to see if that works. If it does, then maybe there are some extraneous characters being added when you insert the additional link.
Everything else you are doing sounds right. Thank you @Rolan 979f4678-2c11-4d21-b634-b7f3e1a9b548. I finally managed to achieve the linking!!! The URLs seemed to be correct, only issue was, i was using this plugin "HTTP Requester" from Firefox, and in that there is a separate Content section to put your response. I was editing the GET response in the same text field and doing a PUT. Now that its done, is there any DXL script in this forum, that does a GET and PUT. I used one, that i found in one link, but it doesn't have many options.
Attaching the script i have.
It would be great to have a DXL Script rather than using the Firefox Plugin.
Thank you so much for your reply and time. I had been on this for weeks. Attachments Script.dxl |
Re: OSLC ERROR MESSAGE:Please explain Gsquare - Thu Sep 14 00:45:13 EDT 2017 Thank you @Rolan 979f4678-2c11-4d21-b634-b7f3e1a9b548. I finally managed to achieve the linking!!! The URLs seemed to be correct, only issue was, i was using this plugin "HTTP Requester" from Firefox, and in that there is a separate Content section to put your response. I was editing the GET response in the same text field and doing a PUT. Now that its done, is there any DXL script in this forum, that does a GET and PUT. I used one, that i found in one link, but it doesn't have many options.
Attaching the script i have.
It would be great to have a DXL Script rather than using the Firefox Plugin.
Thank you so much for your reply and time. I had been on this for weeks. I use the HttpRequest DXL function for gets and puts.
Actually when I started working on DXL to interface with RQM, I started with the example code provided by IBM in the DOORS installation at 'c:\Program Files\IBM\Rational\DOORS\9.6\lib\dxl\example\oslc\sample_get.dxl' I made some mods to this file and then also created a put version to use. That allowed me to experiment with different types of queries on RQM resources and also with making puts to modify RQM data. I never used Firefox, so never ran into the issues you encountered. I also used the DXLSTDLIB to manipulate the XML data in my code. (https://github.com/domoran/dxlstdlib) |